package com.glorious.api;

import com.glorious.common.Result;
import com.glorious.dto.response.appuser.AppUserAuthResponse;
import com.glorious.dto.response.system.SysUserAuthResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "glorious-system", contextId = "sys-user")
public interface SysUserFeignClient {

    @GetMapping("/api/client/users/username/{username}")
    Result<SysUserAuthResponse> getUserByUsername(@PathVariable("username") String username);
}


